import request from '@/utils/request'

// 查询车票管理列表
export function listTicketManage(query) {
  return request({
    url: '/ticket/ticketManage/list',
    method: 'get',
    params: query
  })
}

// 查询车票管理详细
export function getTicketManage(id) {
  return request({
    url: '/ticket/ticketManage/' + id,
    method: 'get'
  })
}

// 新增车票管理
export function addTicketManage(data) {
  return request({
    url: '/ticket/ticketManage',
    method: 'post',
    data: data
  })
}

// 修改车票管理
export function updateTicketManage(data) {
  return request({
    url: '/ticket/ticketManage',
    method: 'put',
    data: data
  })
}

// 删除车票管理
export function delTicketManage(id) {
  return request({
    url: '/ticket/ticketManage/' + id,
    method: 'delete'
  })
}

// 导出车票管理
export function exportTicketManage(query) {
  return request({
    url: '/ticket/ticketManage/export',
    method: 'get',
    params: query
  })
}